-- GENERATED SPELL FOR [Culuthas] --


function spell0_20138(pUnit, Event) --@Chain Felfire,n/a--
pUnit:FullCastSpellOnTarget(37089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20138', 3000, 1)
end

function spell1_20138(pUnit, Event) --@Shadowfury,n/a--
pUnit:FullCastSpellOnTarget(35373,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20138', 3000, 1)
end

function spell2_20138(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(36402,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20138', 3313, 1)
end

function Sorts_20138(pUnit, Event)
local choix_sorts_20138 = math.random(0, 2)
if choix_sorts_20138 == 0 then
pUnit:RegisterEvent('spell0_20138', 1, 1)
end
if choix_sorts_20138 == 1 then
pUnit:RegisterEvent('spell1_20138', 1, 1)
end
if choix_sorts_20138 == 2 then
pUnit:RegisterEvent('spell2_20138', 1, 1)
end
end

function mob20138_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20138', math.random(1500, 3000), 1)
end

function mob20138_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20138_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20138_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20138, 1, 'mob20138_Action')
RegisterUnitEvent(20138, 2, 'mob20138_Leave')
RegisterUnitEvent(20138, 3, 'mob20138_Kill')
RegisterUnitEvent(20138, 4, 'mob20138_Die')
